package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.CheckItem;

import java.util.List;

public interface CheckItemService {
    /**
     * @Author: JASON
     * @Date: 10:23 2021/1/4
     * @Parms [queryPageBean]
     * @ReturnType: com.itheima.health.entity.PageResult
     * @Description:checkitem分页查询
    */
    PageResult findByPage(QueryPageBean queryPageBean);

    /**
     * @Author: JASON
     * @Date: 11:38 2021/1/4
     * @Parms [checkItem]
     * @ReturnType: void
     * @Description: 新增检查项
    */
    void add(CheckItem checkItem);

    /**
     * @Author: JASON
     * @Date: 12:17 2021/1/4
     * @Parms [id]
     * @ReturnType: void
     * @Description: 根据id删除检查项
    */
    void delete(Integer id);

    /**
     * @Author: JASON
     * @Date: 14:53 2021/1/4
     * @Parms [id]
     * @ReturnType: com.itheima.health.pojo.CheckItem
     * @Description: 根据id查询检查项
    */
    CheckItem findById(Integer id);

    /**
     * @Author: JASON
     * @Date: 15:05 2021/1/4
     * @Parms [checkItem]
     * @ReturnType: void
     * @Description: 根据id修改检查项
     */
    void edit(CheckItem checkItem);

    /**
     * @Author: JASON
     * @Date: 14:42 2021/1/5
     * @Parms []
     * @ReturnType: java.util.List<com.itheima.health.pojo.CheckItem>
     * @Description: 检查组新增检查项显示
    */
    List<CheckItem> findAll();

}
